﻿using System;
using System.Globalization;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace _1906Ultras.Model
{
    public class Tweet
    {
        //public object in_reply_to_user_id { get; set; }
        //public object in_reply_to_status_id_str { get; set; }
        //public bool retweeted { get; set; }
        //public object in_reply_to_status_id { get; set; }
        public string id_str { get; set; }
        //public object geo { get; set; }
        //public object in_reply_to_user_id_str { get; set; }
        public bool truncated { get; set; }
        //public object in_reply_to_screen_name { get; set; }
        public TwitterUser user { get; set; }
        public bool possibly_sensitive { get; set; }
        //public object contributors { get; set; }
        //public bool favorited { get; set; }
        //public object place { get; set; }
        //public string source { get; set; }
        public long id { get; set; }
        //public object coordinates { get; set; }
        public int retweet_count { get; set; }

        private string _text;

        public string text
        {
            get { return HttpUtility.HtmlDecode(_text); }
            set { _text = value; }
        }

        public string created_at { get; set; }

        public DateTime date_created
        {
            get { return DateTime.ParseExact(created_at, "ddd MMM dd HH:mm:ss zzz yyyy", CultureInfo.InvariantCulture); }
        }
    }

    public enum FeedLocation
    {
        Top,
        Bottom
    }
}
